package com.example.springbootfoodsafety.config;

import org.springframework.core.Ordered;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

public class WebMvcConfig implements WebMvcConfigurer {

    @Override
  public void addViewControllers(ViewControllerRegistry registry) {

 registry.addViewController("/").setViewName("forward:login/login.html");

 registry.setOrder(Ordered.HIGHEST_PRECEDENCE);

 WebMvcConfigurer.super.addViewControllers(registry);}

}